package com.mysoft.gfyx.marketdevelop.service.dto;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.mysoft.framework.service.dto.DTO;
import com.mysoft.gfyx.marketdevelop.controller.dto.advancesearch.AdvanceSearchFieldDto;
import com.mysoft.gfyx.marketdevelop.controller.dto.advancesearch.GroupDto;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;
import java.util.List;
import java.util.UUID;

@Getter
@Setter
public class RecommendSearchTemplateDto extends DTO {

    private UUID recommendSearchTemplateGUID;

    /**
     * 模板描述
     */
    private String templateDesc;

    /**
     * 实体类型
     */
    private String entityType;

    /**
     * 筛选条件
     */
    private String filter;

    /**
     * 筛选条件jsonObject
     */
    private JSONObject filterJson;
    /**
     * 是否启用
     */
    private Integer isEnable;

    /**
     * 模板名称
     */
    @JsonProperty("templateName")
    private String name;

    /**
     * 推荐搜索模板分类GUID
     */
    @JsonProperty("categoryGUID")
    private UUID recomSearchTemplateCategoryGUID;

    /**
     * 排序
     */
    private Integer sort;

    private String createdName;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createdTime;

    private int useCount;
}

